package com.dz.service;

import com.dz.dto.CategoryDTO;
import com.dz.dto.CategoryPageQueryDTO;
import com.dz.entity.Category;
import com.dz.result.Result;
import com.dz.vo.PageVo;

import java.util.List;

/**
 * @author 鄧浩奇
 * @classname CategoryService
 * @description
 * @since 2023/12/16 21:37
 **/

public interface CategoryService {
    Result<PageVo> page(CategoryPageQueryDTO pageQueryDTO);

    Result<String> addCategory(CategoryDTO categoryDTO);

    Result<String> update(CategoryDTO categoryDTO);

    Result<String> changeStatus(Long id, Integer status);

    Result<String> deleteCategory(Long id);

    List<Category> getListByType(Integer type);
}
